

class coverScene extends egret.Sprite {
	
	// 构造器
	public constructor(father) {
		super();
		this.father = father;
		this.addEventListener(egret.Event.ADDED_TO_STAGE, this.addToStage, this);
	}
	private father;
	addToStage() {
		this.$stage.orientation = egret.OrientationMode.PORTRAIT; 

		// 封面图
		let cover = new egret.Bitmap();
		cover.texture = RES.getRes("cover_png");
		cover.width = this.$stage.stageWidth;
		cover.height = this.$stage.stageHeight;
		this.addChild(cover);

		// 可点击
		this.touchEnabled = true;
		this.addEventListener(egret.TouchEvent.TOUCH_END, function () {

			// sceneManager.fun().loading(this.father, gameScene, "game");
			
        	sceneManager.fun().loadResource(gameScene,"game").catch(e => {
				console.log(e);
			});

		},this)
	}



}